package com.lagou.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lagou.domain.Goods;
import com.lagou.vo.GoodsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper extends BaseMapper<Goods> {

    /**
     * 分页获取商品信息
     * @param goodsVO
     * @return
     */
    public List<Goods> getGoodsListByPage(GoodsVO goodsVO);

    /**
     * 根据id获取商品信息
     * @param ids
     * @return
     */
    public List<Goods> getGoodsByIds(List<Integer> ids);
}
